All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.ServiceHandler
java.lang.Object
|
+----java.lang.Thread
|
+----sun.server.ServiceHandler
- public abstract class ServiceHandler
- extends Thread
-
PRIVATE_BYTE_ARR_SIZE
-
-
service
-
-
ts_buf
-
-
ServiceHandler(Service)
- Creates a new handler for the specified service.
-
getBuffer()
- Get this thread's multi-purpose byte array.
-
handleConnection(Socket)
- Handles a single connection from the client.
-
run()
- Runs the service handler.
service
protected Service service
PRIVATE_BYTE_ARR_SIZE
protected static final int PRIVATE_BYTE_ARR_SIZE
ts_buf
protected byte ts_buf[]
ServiceHandler
protected ServiceHandler(Service service)
- Creates a new handler for the specified service.
- Parameters:
- the - service for this handler
getBuffer
public byte[] getBuffer()
- Get this thread's multi-purpose byte array. Clients should be careful
not to wipe out some caller's data. Generally, this should be used only
when the client does not call any other server routines.
- Returns:
- the thread's private byte array
run
public void run()
- Runs the service handler.
- Overrides:
- run in class Thread
- See Also:
- getConnection, notifyExit
handleConnection
protected abstract void handleConnection(Socket s) throws IOException
- Handles a single connection from the client.
- Parameters:
- s - the socket connection
All Packages Class Hierarchy This Package Previous Next Index